package cn.cdu.medical.entity;

import cn.cdu.basics.baseClass.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import java.time.LocalDateTime;

@Data
@Entity
@Table(name = "consultation")
@TableName("consultation")
@Schema(description = "问诊记录")
@EqualsAndHashCode(callSuper = true)
public class Consultation extends BaseEntity {

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "症状描述")
    @Column(columnDefinition = "TEXT")
    private String symptoms;

    @Schema(description = "AI回复内容")
    @Column(columnDefinition = "TEXT")
    private String response;

    @Schema(description = "问诊类型（CHAT/CHECK）")
    private String type;

    @Schema(description = "问诊时间")
    private LocalDateTime consultTime;

    @Schema(description = "挂号单ID")
    private String orderId;
} 